const router = require('koa-router')()
const Group = require('../controllers/group');

router.prefix('/group')

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})

router.post('/create', Group.create);
router.post('/join', Group.join);
router.get('/members', Group.members);
router.post('/quit', Group.quit);

module.exports = router
